import requests
from bs4 import BeautifulSoup

base_url="https://login2.scrape.center/detail/1"
headers={'Cookie':'sessionid=womwbvbfaux72202aje118xnntax2d6m',
'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0'}
response=requests.get(url=base_url,headers=headers)

html=response.text
soup=BeautifulSoup(html,'lxml')
名字=soup.select('h2.m-b-sm')
简介=soup.find_all('p')
for 名字, 简介 in zip(名字, 简介):
    print(f'{名字.text.strip()} ----简介 {简介.text.strip()}')
